<!DOCTYPE html>
<html>
<head lang="zh-CN">
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="format-detection" content="telephone=no, email=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" href="<%=basePath%>favicon.ico" />

<script>
	var _provinceId = '';
	var isLogin = 'false' == 'true';
</script>

<title>用户信息</title>
<link rel="stylesheet" href="<%=basePath%>css/common/normalize.css">
<link rel="stylesheet" href="<%=basePath%>/css/user/login.css">
<link rel="stylesheet" href="<%=basePath%>css/common/iconfont.css">
</head>

<body>
	<div class="m-wrapper">

		<jsp:include page="header_member.jsp"></jsp:include>

		<div class="content box-tab" id="box-main">
			<span class="clear"></span>
			<ul class="my_pic4">
				<li onclick="edit(this)">公司名称 <span style="width: 50%;"
					class="fright" datalabel="c_cname">${member.c_cname}</span> <i
					class="icon-font icon-arrow-right fright"></i>
				</li>
				<li onclick="edit(this)">通讯地址 <span style="width: 50%;"
					class="fright" datalabel="c_address">${member.c_address}</span> <i
					class="icon-font icon-arrow-right fright"></i>
				</li>
				<li onclick="edit(this)">法人代表 <span style="width: 50%;"
					class="fright" datalabel="c_faren">${member.c_faren}</span> <i
					class="icon-font icon-arrow-right fright"></i>
				</li>
			</ul>
			<p class="clear"></p>
			<button id="savebtn" style="display: none;" type='button'
				onclick='save()'>确定</button>
		</div>



		<div class="tc_loading">
			<img src="/img/loading.gif" width="28px" height="28px">
			<div>加载中…</div>
		</div>
		<!--tab category:end-->


		<jsp:include page="footer.jsp"></jsp:include>
		<!--底部:end-->
	</div>

	<style>
.tc_loading {
	z-index: 9998;
	width: 36%;
	height: 60px;
	text-align: center;
	border-radius: 5px;
	position: fixed;
	top: 50%;
	left: 50%;
	margin-top: -35px;
	margin-left: -18%;
	font-size: 14px;
	color: #fff;
	background-color: rgba(0, 0, 0, .7);
	padding-top: 10px;
	display: none;
}
</style>

	<script type="text/javascript" src="<%=basePath%>js/zepto.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/util.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/head.js"></script>

	<script type="text/javascript">
		$("#header_title").html("个人中心");
		

		function edit(obj) {
			if($(".my_pic4").find("input").length==0){
				if ($(obj).find("input").length == 0) {
					var oldvalue = $(obj).find("span").html();
					$(obj).find("span").html(
									"<input type='text' style='width:100%;' value='"+oldvalue+"' id='editinput' datalabel='"+$(obj).find("span").attr("datalabel")+"'>");
					$("#savebtn").show();
				}
			}
		}

		function save() {
			$.ajax({
				type : "post",
				url : "<%=basePath%>mobile/updateMemberInfo",
				data : $("#editinput").attr("datalabel") + "="
						+ $("#editinput").val(),
				success : function(msg) {
					$("#editinput").parent().html($("#editinput").val());
					$("#savebtn").hide();
				}
			})
		}
	</script>
</body>
</html>